home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / printer / jcosub26.zip / PLAYSTAR.JSR < prev    next >
Text File  |  1996-01-08  |  878b  |  34 lines

  1. /* JACOsub PLAYSTART command demonstration. */
  2.  
  3. parse arg endwait
  4. if ~arg() then endwait=0
  5. options results
  6.  
  7. address 'JACOsub'
  8. 'PLAYSTART' endwait
  9.  
  10. if result then
  11.     say 'script play could not be started.'
  12. else
  13.     if endwait then
  14.         say 'script play complete.'
  15.     else
  16.         say 'script play in progress!'
  17.  
  18. exit result
  19.  
  20. /*
  21.    This is how one causes JACOsub to start playing a script.
  22.    The command PLAYSETUP *must* be given prior to issuing a PLAYSTART
  23.    command.
  24.  
  25.    If JACOsub's play screen is hidden, you do NOT need to send a
  26.    SCREENTOFRONT command before PLAYSTART.  PLAYSTART automatically brings
  27.    the play screen to the front.
  28.  
  29.    PLAYSTART returns RESULT=0 if playing commenced, or RESULT=1 if a
  30.    problem occurred (such as: PLAYSETUP wasn't performed first, or
  31.    PLAYSETUP didn't complete, or the optional endwait argument was
  32.    nonzero and the play-mode was stepped).
  33. */
  34.